package com.cloudkinto.dao;

import com.cloudkinto.entity.FbaOrderOutputDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.entity.OrderCostExportDto;
import com.cloudkinto.extentity.orderinput.AnalysisOrderCountDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhangyy
 * @since 2020-11-04
 */
@Mapper
public interface FbaOrderOutputDao extends BaseMapper<FbaOrderOutputDo> {

    List<Integer> selectFBACountList(@Param("map") Map<String, String> map);

    void updatePickUpIdNull(Long pickupId, Long userId);

    List<OrderCostExportDto> selectOrderCostExcelExport(@Param("fbaOutIds") List<String> fbaOutIds);

    AnalysisOrderCountDto memberAnalysis(Long storageId);

    int updateTrackMatch(Long id, int trackMatch);

}
